2007-06-25 Richard Hult <richard@imendio.com>
* gdk/quartz/gdkevents-quartz.c (gdk_event_translate): Don't steal
menu events while the keyboard is grabbed.
svn path=/trunk/; revision=18231
+2007-06-25 Richard Hult <richard@imendio.com>
+
+ * gdk/quartz/gdkevents-quartz.c (gdk_event_translate): Don't steal
+ menu events while the keyboard is grabbed.
+
2007-06-25 Richard Hult <richard@imendio.com>
* gdk/quartz/Makefile.am:
/* Special-case menu shortcut events. We create command events for
* those and forward to the corresponding menu.
*/
- if ([nsevent type] == NSKeyDown)
+ if ((!_gdk_quartz_keyboard_grab_window ||
+ (_gdk_quartz_keyboard_grab_window && keyboard_grab_owner_events)) &&
+ [nsevent type] == NSKeyDown)
{
EventRef event_ref;
MenuRef menu_ref;